5-E
Simple site for the info you need...
@ echo off :start echo checking for old files del "c:\%USERNAME%.pfx" /q cls echo checking for old files del "\\Server\Share\%USERNAME%.pfx" /q cls echo Please enter the information below set /P UserInfo=Lastname, Firstname: %=% set /P Pass=Enter a password: %=% certutil -user -privatekey -p %Pass% -t 1 -exportpfx "%UserInfo%" c:\%USERNAME%.pfx cls move /y "c:\%USERNAME%.pfx" "\\Server\Share\" del "c:\%USERNAME%.pfx" /q if exist "\\Server\Share\%USERNAME%.pfx" ( echo Success goto end ) else ( echo ****************************** echo ***ERROR PROCESSING REQUEST*** echo ****************************** echo We were not able to process the request echo with the information given, please try again. pause goto start ) :end exit